apiVersion: v1
kind: Service
metadata:
  name: coredns-tcp
  namespace: external-dns
  labels:
    k8s-app: coredns
spec:
  type: LoadBalancer
  externalIPs:
  - {{ INGRESS_VIP }}
  ports:
  - name: dns-tcp
    port: 53
    protocol: TCP
  - name: metrics
    port: 9153
    protocol: TCP
  selector:
    k8s-app: coredns
---
apiVersion: v1
kind: Service
metadata:
  name: coredns-udp
  namespace: external-dns
  labels:
    k8s-app: coredns
spec:
  type: LoadBalancer
  externalIPs:
  - {{ INGRESS_VIP }}
  ports:
  - name: dns
    port: 53
    protocol: UDP
  selector:
    k8s-app: coredns
